<?=isset($header) ? $header : ''?>
<div id="content">
	<div style="overflow:visible;" class="form_style">
		<div class="title">
			<h5>發EDM</h5>
		</div>
		<form  method="post" action="<?=site_url('/send_edm/send_submit')?>" id="userinfo">
		<table>
			<tbody >
			<tr>
				    <th>寄件人：</th>
				    <td>
				    	
						<?=isset($users->name)?$users->name:''?>&nbsp;&nbsp;[<?=$users->email?>]
						<input type="hidden" id="name" name="name" value="<?=$users->name?>">
				    	<input type="hidden" id="sender" name="sender" value="<?=$users->email?>">
				    </td>
				  </tr>
				  <tr>
				    <th>客戶：</th>
				    <td>
				    	<input type="text" style="width:80%;" class="post" id="to" name="to" value="<?=isset($edm)?$edm:''?>" >
				    </td>
					</tr>
					<tr>
				    <th>密件：</th>
				    <td>
				    	<input type="checkbox" name="select_client" id="select_client" value="1" checked >&nbsp;密件
				    </td>
					</tr>
					<tr>
				    <th>主题：</th>
				    <td>
				    	<input type="text" style="width:80%;" class="post" id="subject" name="subject" value="" >
				    </td>
					</tr>
				 
				  <tr>
				    <th>內容：</th>
				    <td ><textarea id="content" name="content" style="width: 734px; height: 244px;"></textarea></td>
				  </tr>
			</tbody>
			<tfoot>
			  <tr>
				<td>&nbsp;</td>
				<td>
				<input type="submit" value="發送" class="input_background">
				</td>
			  </tr>
			</tfoot></table>
		</form>
	</div>
</div>
<?=isset($footer) ? $footer : ''?>